import Layout from '@/layout'

const salaryRouter = {
    path: '/salarys',
    component: Layout,
    name: 'salarys',
    children: [{
            path: '',
            component: () =>
                import ('@/views/salarys'),
            name: 'salarys',
            meta: {
                title: '工资',
                icon: 'money'
            }
        },
        {
            path: 'setting',
            component: () =>
                import ('@/views/salarys/setting'),
            name: 'salarysSetting',
            hidden: true,
            meta: {
                title: '设置'
            }
        },
        {
            path: 'details/:yearMonth/:id',
            component: () =>
                import ('@/views/salarys/detail'),
            name: 'salarysDetails',
            hidden: true,
            meta: {
                title: '详情'
            }
        },
        {
            path: 'historicalArchiving',
            component: () =>
                import ('@/views/salarys/historical'),
            name: 'salarysHistorical',
            hidden: true,
            meta: {
                title: '历史归档'
            }
        },
        {
            path: 'monthStatement',
            component: () =>
                import ('@/views/salarys/month'),
            name: 'salarysMonthStatement',
            hidden: true,
            meta: {
                title: '月报表'
            }
        }
    ]
}
export default salaryRouter